<h1>琴房列表</h1>

<table class="easyui-datagrid list-table" style="width: 600px;height:auto;">
  <thead>
    <tr>
      <th field="id" width="100" align="center">ID</th>
      <th field='name' width="200" align="center">名称</th>
      <th field="operation" width="240" align="center">操作</th>
    </tr>
  </thead>
  <% @rooms.each do |room| %>
    <tr>
      <td><%= room.id %></td>
      <td><%= room.name %></td>
      <td><%= link_to '修改', :action=>'edit',:id=>room %> | <%= link_to '删除', :action=>'destroy', :id=> room %></td>
    </tr>
  <% end %>
</table>

<br />

<%= link_to '新建琴房', :action => 'new'%>
